package com.example.supermarket.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author hpp
 * @since 2021-10-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Discounts extends Model<Discounts> {

    private static final long serialVersionUID = 1L;

    /**
     * 组合套餐id
     */
    @TableId(value = "dis_id", type = IdType.AUTO)
    private Integer disId;

    /**
     * 组合套餐名称
     */
    private String disName;

    /**
     * 组合商品列表
     */
    private String disGoods;

    /**
     * 折扣
     */
    private String disDiscount;


    @Override
    protected Serializable pkVal() {
        return this.disId;
    }

}
